
/**
 * @author keithcasamento
 *
 */
public class AdCompanyAPI extends Database
{
    private AdCompany currComp;

    AdCompanyAPI(int id) {
        currComp = getAdCompany(id);
    }

    /**
     *
     * @param double money amount being paid
     */
    public void pay(double money)
    {
        double temp = currComp.getBalance();
        temp += money;
        currComp.setBalance(temp);
    }
    
}
